Skip to content

Fix node issue and update devcontainer customizations to new guidelines#2

Open
dvlex wants to merge 5 commits intovalenvb:masterfrom
dvlex:master
Open

Fix node issue and update devcontainer customizations to new guidelines#2
dvlex wants to merge 5 commits intovalenvb:masterfrom
dvlex:master

Conversation

@dvlex
Copy link
Copy Markdown

@dvlex dvlex commented Apr 30, 2026

Pull Request: DevContainer Improvements and Environment Updates

Summary

This PR introduces several key improvements to the development environment, ensuring better compatibility, flexibility, and maintainability.

Changes

Node installation source updated
Node.js is now installed from the official distribution instead of a private repository, simplifying setup and improving reliability.

Dynamic user creation in DevContainer

The DevContainer no longer relies on a fixed user. Instead, it dynamically creates a user and group matching the host system, granting sudo privileges to allow passwordless CLI operations inside the container.

Added sudo library

The sudo package has been included to enable passwordless command execution, streamlining developer workflows.

PHP version upgrade

The DevContainer PHP version has been updated from 7.4 → 8.4, aligning with modern standards and ensuring compatibility with current WordPress requirements.

New make reload command

A make reload target has been added. When SQL files are placed inside the data folder, the command automatically configures them and reloads WordPress, simplifying database resets and migrations during development.

mpact

  • Improves developer experience by aligning container users with host users.
  • Enhances maintainability by using official Node.js sources.
  • Provides modern PHP support for WordPress development.
  • Adds automation for database reloads, reducing manual steps.

update devcontainer.json configuration to fit new style
@dvlex dvlex marked this pull request as draft April 30, 2026 17:38
@dvlex dvlex marked this pull request as ready for review April 30, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant